package cn.studyjava.verify.code12306.util;

import org.apache.commons.codec.binary.Base64;

/**
 * <p>
 * Description:
 * </p>
 * 
 * @author: zsljava
 * @version 1.0.0
 * <p>
 * History:
 * -----------------------------------------------
 * @Date: 2017年10月16日 下午5:43:51
 * @author: zsljava
 * @version 1.0.0
 * @OP: Create
 * -----------------------------------------------
 * </p>
 *
 * @since
 * @see
 */
public class Base64Util {

	public static String encodeImg(byte[] binaryData){
		return "data:image/png;base64,".concat(Base64.encodeBase64String(binaryData));
	}
	public static String encode(byte[] binaryData){
		return Base64.encodeBase64String(binaryData);
	}
}
